/*
 * @Author: yangrongxin
 * @Date: 2021-04-26 14:32:39
 * @LastEditors: yangrongxin
 * @LastEditTime: 2021-08-27 10:31:04
 */

import RequestDecorator, { Controller } from '../decorator';

@Controller('/customer/article')
class Article {
  name = 'Article';
  // 查询文章列表
  @RequestDecorator.Post()
  static getArticleList = '/queryArticle';

  // 新增/更新 文章
  @RequestDecorator.Post()
  static updateArticle = '/update';

  // 查询文章详情
  @RequestDecorator.Post()
  static getArticleDetail = '/detail';

  // 置顶文章
  @RequestDecorator.Post()
  static top = '/updatetop';

  // 上下架文章
  @RequestDecorator.Post()
  static updateStatus = '/updatestatus';

  // 删除文章
  @RequestDecorator.Post()
  static delete = '/delete';

  // 查询渠道
  @RequestDecorator.Post()
  static getChannel = '/channel';

  // 查询指定渠道下的所有模块
  @RequestDecorator.Post()
  static getCategoryAll = '/ModuleQueryAll';

  // 获取视频播放的地址
  @RequestDecorator.Post()
  static getVideoUrl = '/getVideoUrl';
}

export default Article;
